<!--
 * @Author: 谢陈洁
 * @Date: 2025-05-23 15:06:24
 * @LastEditors: 谢陈洁
 * @LastEditTime: 2025-07-08 16:17:16
-->
<template>
  <!-- element-plus i18n -->
  <el-config-provider :locale="zhCn">
    <router-view />
  </el-config-provider>
</template>
<script setup lang="ts">
  import zhCn from 'element-plus/es/locale/lang/zh-cn'
</script>
<style lang="scss">
  :root {
    --layout-header-background: #2c2727;
    --layout-header-text-color: #fff;
    --layout-footer-background: #fff;
    --layout-sidebar-background: #f0f2f5;
    --layout-sidebar-collapsed-background: #f0f2f5;
    --primary-color: #409eff;
    --primary-color-light: #ecf5ff;
    --layout-main-header-background: #fff;
    &.dark {
      :root.dark {
        --el-color-primary: #409eff;
        --el-bg-color: #1a1a1a;
        /* 其他必要的变量覆盖 */
      }
    }
  }
  .dark {
    --layout-header-background: #181818;
    --layout-header-text-color: #e0e0e0;
    --layout-main-header-background: #232323;
    --layout-footer-background: #232323;
    --layout-sidebar-background: #232323;
    --layout-sidebar-collapsed-background: #232323;
  }
</style>
